package net.rain;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Slf4j
@SpringBootApplication
@MapperScan("net.rain.mapper")
@EnableScheduling
@EnableAsync
@EnableSwagger2
public class RainyApplication {

    public static void main(String[] args) {
        ApplicationContext context=SpringApplication.run(RainyApplication.class, args);
        log.info("项目：http://localhost:"+context.getEnvironment().getProperty("server.port")+"/page/login/login.html");
        log.info("api文档：http://localhost:"+context.getEnvironment().getProperty("server.port")+"/swagger-ui.html#/");
    }
}
